package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.SmsconfigsMapper;
import com.base.po.voip.Smsconfigs;
import com.base.po.voip.SmsconfigsExample;
import com.base.service.SmsconfigsService;
import org.springframework.stereotype.Service;

@Service("smsconfigsService")
public class SmsconfigsServiceImpl implements SmsconfigsService {
	@Autowired
	private SmsconfigsMapper smsconfigsMapper;

	@Override
	public int countByExample(SmsconfigsExample example) {
		return smsconfigsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SmsconfigsExample example) {
		return smsconfigsMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return smsconfigsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Smsconfigs record) {
		return smsconfigsMapper.insert(record);
	}

	@Override
	public int insertSelective(Smsconfigs record) {
		return smsconfigsMapper.insertSelective(record);
	}

	@Override
	public List<Smsconfigs> selectByExample(SmsconfigsExample example) {
		return smsconfigsMapper.selectByExample(example);
	}

	@Override
	public Smsconfigs selectByPrimaryKey(String id) {
		return smsconfigsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Smsconfigs record, SmsconfigsExample example) {
		return smsconfigsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Smsconfigs record, SmsconfigsExample example) {
		return smsconfigsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Smsconfigs record) {
		return smsconfigsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Smsconfigs record) {
		return smsconfigsMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Smsconfigs> selectByAgentIdAll(String agentID) {
		
		return smsconfigsMapper.selectByAgentIdAll(agentID);
	}

	@Override
	public Smsconfigs selectByAgentId(String agentID) {
		return smsconfigsMapper.selectByAgentId(agentID);
	}

}
